package com.htu.service.Impl;

import com.htu.mapper.CartMapper;
import com.htu.po.Cart;
import com.htu.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CartServiceImpl implements CartService {
    @Autowired
    private CartMapper cartMapper;

    public List<Cart> listCart(Cart cart) {
        return cartMapper.listCart(cart);
    }

    public int saveCart(Cart cart) {
        return cartMapper.saveCart(cart);
    }

    public int removeCart(Cart cart) {

        return cartMapper.removeCart(cart);
    }

    public int updateCar(Cart cart) {

        return cartMapper.updateCart(cart);
    }
}
